
"""
两个数比较大小,第一个数字大时, 返回true
"""

def compare(num1, num2):
    if num1 <= num2:
        return True
    else:
        return False



"""
    获取下注额
"""

def getBettingAmount(num):
    modelType ={}
    modelType["all"]={"N0":1,
                      "N1":3,
                      "N2":6,
                      "N3":10,
                      "N4":15,
                      "N5":21,
                      "N6":28,
                      "N7":36,
                      "N8":45,
                      "N9":55,
                      "N10":63,
                      "N11":69,
                      "N12":73,
                      "N13":75,
                      "N14":75,
                      "N15":73,
                      "N16":69,
                      "N17":63,
                      "N18":55,
                      "N19":45,
                      "N20":36,
                      "N21":28,
                      "N22":21,
                      "N23":15,
                      "N24":10,
                      "N25":6,
                      "N26":3,
                      "N27":1}
    return modelType["all"][num]


def strToInt(strNum):
    if type(strNum) != int and strNum.__contains__("w"):
        return int(strNum.replace("w",""))
    else:
        return int(strNum)



# if __name__ == '__main__':
#     print(getBettingAmount(1))
#     print("1"+1)
if __name__ == '__main__':
    # print(strToInt("1w"))
    # print(strToInt("100000"))
    print(strToInt(100000))
    print(type(100000)=='int')
    print(type(100000) == int)